package com.zxjbyte.yiyi.module.system.convert.log;

import com.zxjbyte.yiyi.module.system.domain.dto.log.OperateLogAddDTO;
import com.zxjbyte.yiyi.module.system.domain.entity.OperateLogPO;
import com.zxjbyte.yiyi.module.system.domain.response.log.OperateLogPageResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author zhangxingjia
 * @Date 2023/3/16 15:56
 * @Version: 1.0
 */
@Mapper(componentModel = "spring")
public interface OperateLogConvert {

    OperateLogConvert INSTANCE = Mappers.getMapper(OperateLogConvert.class);

    OperateLogPO convert(OperateLogAddDTO reqDto);

    List<OperateLogPageResponse> pageConvert(List<OperateLogPO> pagePoList);

    OperateLogPageResponse pageConvert(OperateLogPO po);
}
